﻿using AccessControl.Utility.ConnectionManager;
using DevExpress.XtraEditors;

namespace AccessControl.ConnectionStringBuilder
{
	public partial class MainForm : XtraForm
	{
		public MainForm()
		{
			InitializeComponent();
		}

		private void simpleButtonSubmit_Click(object sender, System.EventArgs e)
		{
			saveFileDialog.ShowDialog();
			if (saveFileDialog.FileName==string.Empty)
				return;
			new  ConnectionStringManager(saveFileDialog.FileName).SetConnectionString(textBoxConnectionString.Text);
		}
	}
}